<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>

    <title>Document</title>
</head>
<body>
    <div id="app">
        <h1>{{price | addSign("￥",2) | addFont}}</h1>
    </div>
    <script>
        new Vue({
            el:"#app",
            data:{
                price:441
            },
            filters:{
                addSign(v,sym,n){
                    return sym + v.toFixed(n)
                },
                addFont(v){
                    return "价格：" + v
                }
            }
        })
    </script>
</body>
</html>